package com.zhj.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhj.product.entity.pojo.ItemsImg;
import com.zhj.product.entity.pojo.ItemsSpec;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.zhj.product.mapper.ItemsSpecMapper;
import com.zhj.product.service.ItemsSpecService;

import java.util.List;

@Service
public class ItemsSpecServiceImpl implements ItemsSpecService {

    @Resource
    private ItemsSpecMapper itemsSpecMapper;

    @Override
    public List<ItemsSpec> selectSpecByItemId(String itemId) {
        LambdaQueryWrapper<ItemsSpec> queryWrapper = new QueryWrapper<ItemsSpec>().lambda().eq(ItemsSpec::getItemId, itemId);
        return itemsSpecMapper.selectList(queryWrapper);
    }
}
